package com.sxjh.config;

import cn.hutool.cache.Cache;
import cn.hutool.cache.CacheUtil;
import com.sxjh.entity.User;

/**
 * 初始化缓存
 */
public class CacheConfig {

  private static Cache<Long, User> cache = CacheUtil.newTimedCache(90000);

  private CacheConfig() {}

  public static Cache<Long, User> getCache() {
    return cache;
  }
}
